import {httpRequest} from '@/request/https'

export default {
    /**
     * 船运代理合同分页查询
     * */
    postShippingAgencyPage: params => httpRequest({url: '/con/conSpAgency/page', method: 'post', params}),
    /**
     * 新增船运代理合同
     * */
    postAddShippingAgency: params => httpRequest({url: '/con/conSpAgency', method: 'post', params}),
    /**
     * 修改航运代理合同
     * */
    putShippingAgency: params => httpRequest({url: '/con/conSpAgency', method: 'put', params}),
    /**
     * 删除航运代理合同
     * */
    deleteShippingAgency: params => httpRequest({url: `/con/conSpAgency/${params}`, method: 'delete'}),
    /**
     * 申请航运代理合同优秀模板
     * */
    postShippingAgencyExcellent: params => httpRequest({url: `/con/conSpAgency/excellent`, method: 'post', params}),
    /**
     * 查询航运代理合同详情
     * */
    getShippingAgencyInfo: params => httpRequest({url: `/con/conSpAgency`, method: 'get', params}),
    /**
     * 航运代理合同导出
     * */
    exportShippingAgency: params => httpRequest({url: `/con/conSpAgency/export`, method: 'post', params})
}
